package cn.com.xiaoshoujia.common.entity;

/**
 * 城市
 * Created by yangrui on 2017/7/11.
 */
public class City {
    private Long id; //bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    private Long cityId; //bigint(20) DEFAULT '0',
    private String cityName; //varchar(255) DEFAULT NULL COMMENT '城市名称',
    private Integer cityType; //int(11) DEFAULT NULL COMMENT '城市类型(省市区123)',
    private Long parentId; //bigint(20) DEFAULT NULL COMMENT '父id',

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Integer getCityType() {
        return cityType;
    }

    public void setCityType(Integer cityType) {
        this.cityType = cityType;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "City{" +
                "id=" + id +
                ", cityId=" + cityId +
                ", cityName='" + cityName + '\'' +
                ", cityType=" + cityType +
                ", parentId=" + parentId +
                '}';
    }
}
